package com.itljm.cxrMarket.service;

import com.itljm.cxrMarket.entity.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itljm.cxrMarket.entity.dto.ShoppingCartDTO;

import java.util.List;

public interface ShoppingCartService extends IService<ShoppingCart> {

    boolean addProductToCart(Long userId, Integer productId);
    boolean increaseProductQuantity(Long userId, Integer productId, Integer quantity);
    boolean decreaseProductQuantity(Long userId, Integer productId);
    boolean removeProductFromCart(Long userId, Integer productId);
    List<ShoppingCartDTO> getShoppingCartItems(Long userId);
    boolean updateCheckedStatus(Long userId, Integer productId, Integer checked);
}
